<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    @include('public.h5_head')
    <meta name="csrf_token" id="token" content="{{ csrf_token() }}">
    <title>赊账列表</title>
    <script src="{{ env('CDN_DOMAIN_NAME') }}/js/commonjs/rem.js"></script>
    <link rel="stylesheet" type="text/css" href="{{ env('CDN_DOMAIN_NAME') }}/css/commoncss/common.css"/>
    <link rel="stylesheet" type="text/css" href="{{ env('CDN_DOMAIN_NAME') }}/css/selling.css"/>
</head>
    <script src="{{ env('CDN_DOMAIN_NAME') }}/js/commonjs/iscroll.js"></script>
	<script src="{{ env('CDN_DOMAIN_NAME') }}/js/app.js"></script>
	<script src="{{ env('CDN_DOMAIN_NAME') }}/js/commonjs/common.js"></script>
<body>
<div id="box_selling">
    <div class="wrap">
        <div class="main_selling">
            <div class="seek" onclick="window.location.href='/Business/bus_select'">
                <div class="seek_img">
                    <img class="seek_pic" src="/img/seek.png" alt="">
                    <p class="seek_name">搜索</p>
                </div>
            </div>
            @if(count($orders) ==0 )
            <div class="main_empty">
                <div class="selling_empty">
                    <div class="selling_img">
                        <img src="/img/00016.png" alt="" />
                    </div>
                </div>
                <p class="selling_wrods">目前没有赊账订单</p>
            </div>
            @else
                @foreach($orders as $k => $v)
            <div class="selling_product">
                <div class="selling_title">
                    <div class="selling_icon">
                        <img src="/img/00004.png" alt="" />
                        <span>{{ $brandName[$v->brand_id] }}</span>
                        <div class="selling_success">
                            @if($v->is_pay)
                                已结清
                                @else
                                未结清
                            @endif
                        </div>
                    </div>
                    <div class="selling_code"><span>订单编号：</span>{{ $v->son_order_num }}</div>
                </div>
                <div class="selling_selling">
                    <div class="selling_selling_l">
                        <img src="{{ env('CDN_DOMAIN_NAME') }}/upload/{{ $v->face }}" alt="" class="selling_selling_img" />
                    </div>
                    <div class="selling_selling_r">
                        <div class="selling_selling_name">
                            <p class="selling_selling_tit">{{ $v->title }}</p>
                            <p class="selling_price">￥<b>{{ sprintf('%.2f', $v->total_price/$v->num) }}</b></p>
                        </div>
                        <p class="selling_selling_words">款号：{{ $v->girard }}</p>
                        <div class="selling_list_color">
                            <p class="selling_list_hue">颜色：{{ $v->color }}</p>
                        </div>
                        <div class="selling_selling_b">
                            <p class="selling_list_postage">数量：{{ $v->num }}手</p>
                        </div>
                    </div>
                </div>
                <div class="selling_pass">
                    <p class="selling_compellation">买家姓名：<span class="compellation">{{ $v->addressee_name }}</span></p>
                    @if($v->is_pay && $v->operation_id)
                            <p class="selling_person" >操作员：<span class="person">{{ $v->operation_name }}</span></p>
                    @endif
                </div>
                <p class="selling_skip"><a href="/Business/orderInfos/{{ $v->id }}" class="skip_name">支付详情</a></p>
            </div>
                @endforeach
            @endif
            <!--添加-->
        </div>
    </div>
</div>
</body>
<script>
    scroll();
</script>
</html>
